package com.tonny.bootdemo;

import tk.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

@EnableWebMvc
@SpringBootApplication
@MapperScan("com.tonny.bootdemo.dao")
public class BootDemoApplication extends WebMvcConfigurerAdapter implements CommandLineRunner {

	public static void main(String[] args) {
		SpringApplication.run(BootDemoApplication.class, args);
	}

    @Override
    public void run(String... strings) throws Exception {
        System.out.println("服务启动完成!");
    }
}
